package cn.edu.qzuie.artist.module.td.controller.app.work.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "用户 APP - 作品新增/修改 Request VO")
@Data
public class AppWorkSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "作品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "3D作品")
    @NotEmpty(message = "作品名称不能为空")
    private String workName;

    @Schema(description = "分类编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12")
    @NotNull(message = "分类编号不能为空")
    private Long categoryId;

    @Schema(description = "图片", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "图片不能为空")
    private String imgSrc;

    @Schema(description = "作品类型：图片，视频，文件", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "作品类型：图片，视频，文件不能为空")
    private Integer workType;

    @Schema(description = "上传文件地址")
    private String filepath;

    @Schema(description = "介绍", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    private String description;
    @NotNull(message = "用户不能为空")
    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long userId;
}